from math import pow
import get_int

class Deal_array:
	def __init__(self,array):
		self.array = array
	def array_com(self,a,b):
		self.m = zip(a,b)
		self.m = []
		for i in range(len(a)):
			self.m.append(a[i]-b[i])
		self.num = self.work()
		return self.num
	def work(self):
		array = self.m
		return sum(map ((lambda x : pow(x,2)),array))
	def re(self):
		list_i = []
		for i in range(len(self.array)):
			for i2 in range(i+1,len(self.array)):
				list_i.append(self.array_com(self.array[i],self.array[i2]))
		return list_i

class Graphy:
	def __init__(self,array,num):
		self.array = array
		self.num = num
	def search(self):
		#array_number = int(raw_input("input number of array: "))
		array_1 = self.array[0:(self.num-1)]
		
		#sort the value by little-to-big
		array_1.sort()

		match_value = array_1[0:15]
		match_array_no=[]
		for i in match_value:
			match_array_no.append(self.array.index(i)+2)
		return match_array_no

if __name__=="__main__":

	ARRAY =[]
	File = get_int.Cal_file()
	ARRAY = File.read_file()

	num = len(ARRAY)
	print num
	cal = Deal_array(ARRAY)
	Gra = Graphy(cal.re(),num)
	Array_num  = Gra.search()
    	print Array_num

		
